<?php
session_start();
ob_start();
include("../function.php");
condb();
?>
          <select name="breed_id">
          <?php
          $resbreed=mysql_query("select * from petbreed where type_id='$_POST[type_id]' order by breed_id");
		  while($breed=mysql_fetch_assoc($resbreed)){
			 // $select=($type_id==$type['type_id'])?'selected="selected"':'';
			  echo "<option value=$breed[breed_id] $select >$breed[breed_name]</option>";
		  }
		  ?>
          </select>